package com.googlecode.simplexer.validator.implementation;

public class AlphaVerifier extends CompositeVerifier {

	public boolean validate(char chr) throws UnsupportedOperationException {
		/*
		 * added '_' because an name can be started with '_' Sep 14, 2006 Sam
		 * Huang
		 */

		return (chr >= 'a' && chr <= 'z') || (chr >= 'A' && chr <= 'Z')
				|| chr == '_';
		// return Character.isLetter(chr) || chr == '_';
	}

}
